                                            <!-- Script Réalisé par BOUFTIH fADWA -->
<?php
	include("verif_session.php");
	include("bdd_connection.php");
	include("connectBD.php");
	include_once('config.php');
	include_once('Connect_pdo.php');
    require_once("beans/reclamationBean.php");
    require_once("dao/reclamationDao.php"); 
    require_once("dao/nomadeDao.php");          
	extract($_GET);
	extract($_POST);
	$msg=0;
	$reclamation=new reclamationBean();
	$reclamationDao=new reclamationDao();
	$nomadeDao=new nomadeDao();
	if(isset($id_sup)){
	   $reclamation->setIdReclamation($id_sup);
	   $reclamationDao->deleteReclamation($reclamation);
	   $message="Suppression effectueé avec succes!";
	  $msg=1;
	}
	
	            $return=$reclamationDao->loadAllReclamation();
	            if(($msg==1)){
				$tpl->assign("message",$message);	}
				$tpl->assign("return", $return);
				$tpl->assign("nomadeDao", $nomadeDao);
				$tpl->display("reclamation.html");
	?>









	